#include <stdio.h>
extern char * Strncpy(char*dest,const char*src,int n)
{
	int i;
	for(i=0;src[i]!=0&&i<n;i++)
	dest[i]=src[i];
	return dest;
}

int main ()
{
	int i;
	const char s[]="If I Were A Boy";
	char d[20];
	Strncpy(d,s,7);
	for(i=0;i<20;i++)
	  printf("%c",d[i]);
	return 0;  
 } 
